package com.example.demo.exception;

import com.example.demo.common.system.IErrorCode;

import java.util.List;

public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }

    public static void fail(List list) {
        throw new ApiException((Throwable) list);
    }
}